import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

import store from './store/index.js'

setTimeout(() => {
  console.log("通过 store.registerModule 动态注册一个 store 的模块")
  // 动态注册一个 store 的模块
  store.registerModule("ff", {
    state: {
      fa: 'moduleFF, ff-fa'
    },
    getters: {
      myA(state) {
        return state.fa + '..................'
      }
    }
  })

}, 3000);
new Vue({
  store,
  render: h => h(App),
}).$mount('#app')
